import request from "@/utils/request";
import type { PageLimitInterface } from '@/constrain/interface'

export default {
    //获取电影列表
    getFilmList(params:PageLimitInterface,type:string){
        return request({
            url:`gateway?cityId=110100&pageNum=${params.page}&pageSize=${params.limit}&type=${type}&k=9866716`,
            header:{'X-Host': 'mall.film-ticket.film.list'}
        })
    },
    //获取资讯
    getNews(){
        return request({
            url:`gateway?actId=ElzMZU125260`,
            header:{'X-Host': 'mall.act.static-page.info'}
        })
    },
    //获取某个城市离你最近影院
    getNearCinemaByCityId(){
        return request({
            url:`/gateway?cityId=130700&k=6121863`,
            header:{'X-Host': `mall.film-ticket.cinema.recommend`}
        })
    },
    //获取某个城市全部影院
    getCinemaByCityId(){
        return request({
            url:`gateway?cityId=130700&ticketFlag=0&k=3588655`,
            header:{'X-Host': `mall.film-ticket.cinema.list`}
        })
    },
}